package page418;

public class Test1 {
    public static void main(String[] args) {
        Ticket ticket = new Ticket();
        Thread zhangmou = new Thread(ticket);
        Thread limou = new Thread(ticket);
        Thread zhaomou = new Thread(ticket);
        zhangmou.setName("张某");
        limou.setName("李某");
        zhaomou.setName("赵某");
        zhangmou.start();
        limou.start();
        zhaomou.start();
    }
}

